package ooday04;

public class Fish extends Animal implements Swim {
    Fish(String name,int age,String colour){
        super(name,age,colour);
    }
    void eat(){
        System.out.println(colour+"色的"+age+"岁的，名字叫"+name+"的小鱼正在吃小虾米");
    }
    public void swim(){
        System.out.println(colour+"色的"+age+"岁的，名字叫"+name+"的小鱼正在游泳");
    }

}
